<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>增加信息</title>
    <link rel="stylesheet" href="/css/add.css">
</head>
<body>

<h1>新增库存信息</h1>

<form action="/add" method="post">
    <!-- 产品 -->
    <label for="product">产品:</label>
    <input type="text" id="product" name="product" required><br>

    <!-- 购买者 -->
    <label for="name">购买者:</label>
    <input type="text" id="name" name="name" required><br>

    <!-- 购买数量 -->
    <label for="quantity">购买数量:</label>
    <input type="number" id="quantity" name="quantity" required><br>

    <!-- 操作员工 -->
    <label for="staff">操作员工:</label>
    <input type="text" id="staff" name="staff" required><br>

    <!--库存总数-->
    <label for="inventory">库存总数:</label>
    <input type="number" id="inventory" name="inventory" required><br>

    <!--提货数量-->
    <label for="pick">提货数量:</label>
    <input type="number" id="pick" name="pick" required><br>

    <!-- 备注 -->
    <label for="remark">备注:</label>
    <textarea id="remark" name="remark"></textarea><br>

    <input type="submit" value="提交" onclick="inventory_add">
</form>
<script>
    function inventory_add() {
        showNotification()
    }

    function showNotification(icon, message) {
        Swal.fire({
            icon: icon,
            title: message,
            showConfirmButton: false,
            timer: 1500
        });
    }
</script>
</body>
</html>
